﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;
namespace Model
{
    [DataContract]
    [MB.Orm.Mapping.Att.ModelMap("Goods", "Goods", new string[] { "GOODSID" })]
    [KnownType(typeof(Goods))]
    public class Goods : MB.Orm.Common.BaseModel
    {
        public Goods()
        {
        }

        private int _GOODSID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSID", System.Data.DbType.Int32)]
        public int GOODSID
        {
            get { return _GOODSID; }
            set { _GOODSID = value; }
        }

        private string _GOODSCODE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSCODE", System.Data.DbType.String)]
        public string GOODSCODE
        {
            get { return _GOODSCODE; }
            set { _GOODSCODE = value; }
        }

        private string _GOODSNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSNAME", System.Data.DbType.String)]
        public string GOODSNAME
        {
            get { return _GOODSNAME; }
            set { _GOODSNAME = value; }
        }
        private int _KEEPDAYS;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("KEEPDAYS", System.Data.DbType.Int32)]
        public int KEEPDAYS
        {
            get { return _KEEPDAYS; }
            set { _KEEPDAYS = value; }
        }
        private int _FRESHDAYS;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("FRESHDAYS", System.Data.DbType.Int32)]
        public int FRESHDAYS
        {
            get { return _FRESHDAYS; }
            set { _FRESHDAYS = value; }
        }
        private string _BARCODE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("BARCODE", System.Data.DbType.String)]
        public string BARCODE
        {
            get { return _BARCODE; }
            set { _BARCODE = value; }
        }

        private string _LOOKUP;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("LOOKUP", System.Data.DbType.String)]
        public string LOOKUP
        {
            get { return _LOOKUP; }
            set { _LOOKUP = value; }
        }
        private string _CUSTOMCELLNO;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("CUSTOMCELLNO", System.Data.DbType.String)]
        public string CUSTOMCELLNO
        {
            get { return _CUSTOMCELLNO; }
            set { _CUSTOMCELLNO = value; }
        }

        private string _CELLNO;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("CELLNO", System.Data.DbType.String)]
        public string CELLNO
        {
            get { return _CELLNO; }
            set { _CELLNO = value; }
        }

        private string _DLOOKUP;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("DLOOKUP", System.Data.DbType.String)]
        public string DLOOKUP
        {
            get { return _DLOOKUP; }
            set { _DLOOKUP = value; }
        }

        private string _DETAILGOODSCODE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("DETAILGOODSCODE", System.Data.DbType.String)]
        public string DETAILGOODSCODE
        {
            get { return _DETAILGOODSCODE; }
            set { _DETAILGOODSCODE = value; }
        }

        private string _DETAILGOODSNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("DETAILGOODSNAME", System.Data.DbType.String)]
        public string DETAILGOODSNAME
        {
            get { return _DETAILGOODSNAME; }
            set { _DETAILGOODSNAME = value; }
        }
        private string _ISSHOW;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("ISSHOW", System.Data.DbType.String)]
        public string ISSHOW
        {
            get { return _ISSHOW; }
            set { _ISSHOW = value; }
        }

        private decimal _PKGLOSSQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("PKGLOSSQTY", System.Data.DbType.Decimal)]
        public decimal PKGLOSSQTY
        {
            get { return _PKGLOSSQTY; }
            set { _PKGLOSSQTY = value; }
        }

        private decimal _SALESTOCKQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("SALESTOCKQTY", System.Data.DbType.Decimal)]
        public decimal SALESTOCKQTY
        {
            get { return _SALESTOCKQTY; }
            set { _SALESTOCKQTY = value; }
        }
    }
}
